<?php

/*
|--------------------------------------------------------------------------
| Routes File
|--------------------------------------------------------------------------
|
| Here is where you will register all of the routes in an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
/*
Route::get('/', function () {
    return view('welcome');
});
*/

// 截取GET内用
Route::get('/', function () {
    return response()->json(['status' =>false ,'msg'=>trans('error.need_post')])->header('Content-Type', 'xml');
});
// 首次拦截，分发内容。
//Route::post('/',['middleware' => 'json',function(){
//    // 不用做什么！
//}]);
Route::controller('User', 'UserController');





/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| This route group applies the "web" middleware group to every route
| it contains. The "web" middleware group is defined in your HTTP
| kernel and includes session state, CSRF protection, and more.
| 此路由组将“web”中间件组应用到它所包含的每一个路由。“Web"中间件组是您定义的内核，包括HTTP会话状态、CSRF保护等等。
*/

//Route::group(['middleware' => ['web']], function () {
//    //
//});
